package com.zc.angelica.entity;

import com.zc.angelica.enums.ResponseEnum;
import lombok.Data;

@Data
public class BaseResponse {

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 响应消息
     */
    private String msg;


    protected BaseResponse(ResponseEnum code) {
        this.code = code.getCode();
        this.msg = code.getMsg();
    }
}
